package com.team.book.mapper;

import com.team.book.common.domain.Page;
import com.team.book.domain.BorrowedRecord;
import com.team.book.domain.BorrowedRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BorrowedRecordMapper {
    long countByExample(BorrowedRecordExample example);

    int deleteByExample(BorrowedRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BorrowedRecord record);

    int insertSelective(BorrowedRecord record);

    List<BorrowedRecord> selectByExample(BorrowedRecordExample example);

    BorrowedRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BorrowedRecord record, @Param("example") BorrowedRecordExample example);

    int updateByExample(@Param("record") BorrowedRecord record, @Param("example") BorrowedRecordExample example);

    int updateByPrimaryKeySelective(BorrowedRecord record);

    int updateByPrimaryKey(BorrowedRecord record);

    List<BorrowedRecord> query(Map<String,Object> map);

    long count(Map<String,Object> map);
}